package com.rongji.cms.tools.temp;

import cn.easyes.starter.register.EsMapperScan;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author yang
 * @date 2023/1/10 14:27
 * @description
 */

@Slf4j
@SpringBootApplication
@ComponentScan(basePackages = {"com.rongji.cms.tools.*"})
@EsMapperScan("com.rongji.cms.tools.es.mapper.es")
public class TempApplication {

    /** 解决 discard long time none received connection */
    static {
        System.setProperty("druid.mysql.usePingMethod", "false");
    }


    public static void main(String[] args) {
        SpringApplication.run(TempApplication.class, args);
        log.info("-------------temp start!!!");

    }

}

